package com.byron.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.byron.dao.UserDao;
import com.byron.model.User;
import com.byron.service.UserService;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findUserByName(String userName) {

        List<User> ls =  userDao.findUserByName(userName);
        System.out.println(ls.size());
        return ls;
    }

    @Override
    public void save(User user) {
        
        // TODO Auto-generated method stub
        userDao.save(user);
    }

}
